package com.xm.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author tianqin
 * @Date 2024/7/26 15:52
 * 接口实体类
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GoodInfoNewEntity {
    private int code;
    private String msg;
    private GoodInfoNewEntity.DataDto data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataDto {
        private int total;
        private BigDecimal goodsMinPrice;
        private int auctionNum;
        private List<GoodInfoNewEntity.GoodsArchiveDto> goodsArchiveList;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class GoodsArchiveDto {
        private long goodsId;
        private int archiveId;
        private String goodsName;
        @JsonProperty("pfpImg")
        private String profileImage;
        private String goodsPrice;
        private int sellStatus;
        private String sellTime;
        private String goodsNo;
        private String timePass;
        private int dealType;
        @JsonProperty("isPayBond")
        private boolean isPayBond;
        private int goodsType;
        private int goodsWantBuyCount;
        private int illegalCount;
        private int[] supportPayType;
    }
}
